package com.school.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.school.entity.HljtSchoolimage;

@Repository
public interface HljtSchoolimageDao {
	
	/**
	 * 
	 * 查询所有视频
	 * @return
	 */
	List<HljtSchoolimage> selectAllSchoolImage(int nStart,int nSize);
	/**
	 * 
	 * 根据类型查询所有视频
	 * @return
	 */
	List<HljtSchoolimage> selectSchoolImageByType(String type);
	/**
	 * 
	 * 根据ID 查询视频
	 * @return
	 */
	HljtSchoolimage selectHljtSchoolImageById(int id);
	/**
	 * 
	 * 添加视频
	 * @return
	 */
	int insertHljtSchoolImage(HljtSchoolimage oHljtSchoolimage);
	/**
	 * 
	 * 修改视频
	 * @return
	 */
	int updateHljtSchoolImageById(HljtSchoolimage oHljtSchoolimage);
	/**
	 * 
	 * 删除视频
	 * @return
	 */
	int deleteHljtSchoolImageById(int id);
	/**
	 * 根据id删除一条数据
	 * @param id
	 * @return
	 */
	Integer deleteSchoolImage(Integer id);
	/**
	 * 根据id查找对应一条数据
	 * @param id
	 * @return
	 */
	HljtSchoolimage findSchoolImage(Integer id);
	/**
	 * 修改一条数据
	 * @param hljtSchoolimage
	 * @return
	 */
	Integer updateSchoolImage(HljtSchoolimage hljtSchoolimage);
	/**
	 * 添加一条数据
	 * @param hljtSchoolimage
	 * @return
	 */
	Integer addSchoolImage(HljtSchoolimage hljtSchoolimage);
	/**
	 * 根据样式查找说有信息或者模糊查询
	 * @param type
	 * @param title
	 * @return
	 */
	List<HljtSchoolimage> schoolimageList(@Param(value="type")String type,@Param(value="title")String title);
	
	/**
	 * 根据样式查找说有信息或者模糊查询
	 * @param type
	 * @param title
	 * @return
	 */
	List<HljtSchoolimage> schoolimageListPage(@Param(value="type")String type,@Param(value="title")String title,@Param(value="pageSize")Integer pageSize,@Param(value="pageIndex")Integer  pageIndex);
	/**
	 * 修改一条数据的信息
	 * @return
	 */
	Integer updateschoolimage(HljtSchoolimage hljtschoolimage);
	/**
	 * @param type
	 * @return
	 */
	Integer deleteimage(Integer type);
}
